home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Tools / HD / SmartFileSystem / V1.58 / Sources / fs / packets.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-24  |  3.2 KB  |  101 lines

  1.  
  2. #define SFS_PACKET_BASE         (0xf00000)
  3.  
  4. #define SFS_INQUIRY             (SFS_PACKET_BASE + 0x11000)
  5.  
  6. #define ACTION_GET_TOTAL_BLOCKS (SFS_INQUIRY + 0)
  7. #define ACTION_GET_BLOCKSIZE    (SFS_INQUIRY + 1)
  8. #define ACTION_GET_BLOCKDATA    (SFS_INQUIRY + 2)
  9.  
  10. #define ACTION_SET_DEBUG        (SFS_PACKET_BASE + 0xBDC0)
  11. #define ACTION_SET_CACHE        (SFS_PACKET_BASE + 0xBDC0 + 1)
  12. #define ACTION_FORMAT_ARGS      (SFS_PACKET_BASE + 0xBDC0 + 2)
  13.  
  14. /* Above are 'old' packet types.  Below are the new types. */
  15.  
  16. #define ACTION_SFS_QUERY             (SFS_PACKET_BASE + 1)
  17.  
  18. #define ACTION_SFS_SET_OBJECTBITS    (SFS_PACKET_BASE + 100 + 1)
  19. #define ACTION_SFS_LOCATE_OBJECT     (SFS_PACKET_BASE + 100 + 2)
  20. #define ACTION_SFS_FORMAT            (SFS_PACKET_BASE + 100 + 3)
  21.  
  22.  
  23.  
  24. /* Tags used by ACTION_SFS_FORMAT: */
  25.  
  26. #define ASFBASE            (TAG_USER)
  27.  
  28. #define ASF_NAME           (ASFBASE + 1)  /* The name of the disk.  If this tag is not specified
  29.                                              format will fail with ERROR_INVALID_COMPONENT_NAME. */
  30.  
  31. #define ASF_NORECYCLED     (ASFBASE + 2)  /* If TRUE, then this tag will prevent the Recycled
  32.                                              directory from being created.  It defaults to creating
  33.                                              the Recycled directory. */
  34.  
  35. #define ASF_CASESENSITIVE  (ASFBASE + 3)  /* If TRUE, then this tag will use case sensitive file
  36.                                              and directory names.  It defaults to case insensitive
  37.                                              names. */
  38.  
  39. #define ASF_SHOWRECYCLED   (ASFBASE + 4)  /* If TRUE, then the Recycled directory will be visible
  40.                                              in directory listings.  It defaults to an invisible
  41.                                              Recycled directory. */
  42.  
  43. #define ASF_RECYCLEDNAME   (ASFBASE + 5)  /* The name of the Recycled directory.  Defaults to
  44.                                              '.recycled'. */
  45.  
  46. /*
  47.  
  48. ACTION_SFS_QUERY
  49.  
  50. arg1: (struct TagItem *); Pointer to a TagList.
  51.  
  52. res1: DOSTRUE if no error occured.
  53. res2: If res1 is DOSFALSE, then this contains the errorcode.
  54.  
  55. This packet fills the tags you provided in the taglist with 
  56. the desired information.  See query.h for the tags.
  57.  
  58.  
  59.  
  60. ACTION_SFS_SET_OBJECTBITS
  61.  
  62. arg1: <unused>
  63. arg2: BPTR to a struct FileLock
  64. arg3: BSTR with the path and objectname
  65. arg4: New value
  66.  
  67. res1: DOSTRUE if no error occured.
  68. res2: If res1 is DOSFALSE, then this contains the errorcode.
  69.  
  70. This packet allows you to set SFS specific bits for objects.
  71. At the moment it allows you to set or clear the OTYPE_HIDE
  72. bit which causes objects to be excluded from directory
  73. listings.
  74.  
  75.  
  76.  
  77. ACTION_SFS_LOCATE_OBJECT
  78.  
  79. arg1: ObjectNode number
  80. arg2: Accessmode
  81.  
  82. res1: A (normal) pointer to a Lock, or 0 if an error occured.
  83. res2: If res1 is 0, then this contains the errorcode.
  84.  
  85. This packet can be used to obtain a FileLock by ObjectNode
  86. number.  The Recycled directory has a fixed ObjectNode number
  87. RECYCLEDNODE (2) and you can use this packet to obtain a lock
  88. on that directory.
  89.  
  90. Accessmode is similair to ACTION_LOCATE_OBJECT.  It can be
  91. SHARED_LOCK or EXCLUSIVE_LOCK.
  92.  
  93.  
  94.  
  95. ACTION_SFS_FORMAT
  96.  
  97. arg1: (struct TagItem *); Pointer to a TagList.
  98.  
  99.  
  100. */
  101.